package com.zkthink.ceres.file.dto;

import com.zkthink.base.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * <p>
 * 实体类 素材标签表
 * </p>
 *
 * @author kellen
 * @since 2020-05-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "AttachmentTagUpdateDTO", description = "素材标签表")
public class AttachmentTagUpdateDTO implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "主键")
  @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
  private Long id;

  /**
   * 标签名称
   */
  @ApiModelProperty(value = "标签名称")
  @Length(max = 100, message = "标签名称长度不能超过100")
  private String name;
}
